<?php

    $conn = mysql_connect('localhost', 'root', '');
    mysql_select_db('project');
    mysql_query("SET charactor_set_results=utf8",$conn);
    mysql_query("SET NAMES 'utf8'");

    $str = $_POST['id'];
    $id = substr($str, 5);
	$q = "SELECT * FROM gop_y WHERE id_gop_y = $id";
    $r = mysql_query($q);
    $rows = mysql_fetch_array($r);
?>

<div class="messageview"> 
    
    <div class="btn-group pull-right">
        <button data-toggle="dropdown" class="btn dropdown-toggle">Actions <span class="caret"></span></button>
        <ul class="dropdown-menu">
            <li><a href="#">Forward</a></li>
            <li><a href="#">Report as Spam</a></li>
            <li><a href="#">Delete Message</a></li>
            <li><a href="#">Print Message</a></li>
            <li><a href="#">Mark as Unread</a></li>
        </ul>
    </div>
    
    <h1 class="subject"><?php echo $rows['tieu_de']; ?></h1>
    <div class="msgauthor">
        <div class="thumb"><img src="view/cp/widget/images/photos/thumb1.png" alt="" /></div>
        <div class="authorinfo">
            <span class="date pull-right">April 03, 2012</span>
            <h5><strong><?php echo $rows['ho_ten'] ?></strong> 
                <span><?php echo $rows['email'] ?></span>
            </h5>
            <span class="to">to me@mydomain.com</span>
        </div><!--authorinfo-->
    </div><!--msgauthor-->
    <div class="msgbody">
        <?php
            echo $rows['noi_dung'];
        ?>
    </div><!--msgbody-->
</div><!--messageview-->

<div class="msgreply">
    <div class="thumb"><img src="view/cp/widget/images/photos/thumb1.png" alt="" /></div>
    <div class="reply">
        <textarea placeholder="Type something here to reply"></textarea>
    </div><!--reply-->
</div><!--messagereply-->
</div>